package com.gtw.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.gtw.modules.entity.TbActivity;
import com.gtw.modules.entity.TbActivityCommodity;
import com.gtw.utils.SpringMVC_Custom_Json_Date_Deserializer;

import java.util.Date;
import java.util.List;

public class TbActivityDto {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Integer id;

    /**
     * 活动名称
     */
    private String name;

    /**
     * 类型(0:砍价 1:试吃  2:抢购)
     */
    private Integer type;

    /**
     * 开始时间
     */
    @JsonDeserialize(using = SpringMVC_Custom_Json_Date_Deserializer.class)
    private Date starttime;

    /**
     * 结束时间
     */
    @JsonDeserialize(using = SpringMVC_Custom_Json_Date_Deserializer.class)
    private Date endtime;

    /**
     * 是否开始(0:未开始  1:已开始  2:已结束)
     */
    private Integer isopen;

    /**
     * 创建时间
     */
    private Date createtime;

    /**
     * 创建人
     */
    private String createuser;

    /**
     * 是否删除(0:未删除 1:已删除)
     */
    private Integer isdelete;

    /**
     * 商品
     */
    private TbCommodityDto tbCommodityDto;

    /**
     * 中间表
     */
    private List<TbActivityCommodityDto> tbActivityCommodityList;


    /**
     * 说明
     */
    private String description;

    /**
     * banner图片
     */
    private String bannerurl;

    /**
     * 三人砍价比例
     */
    private Float threebargain;

    /**
     * 六人砍价比例
     */
    private Float sixbargain;

    /**
     * 十人砍价比例
     */
    private Float tenbargain;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Integer getIsopen() {
        return isopen;
    }

    public void setIsopen(Integer isopen) {
        this.isopen = isopen;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getCreateuser() {
        return createuser;
    }

    public void setCreateuser(String createuser) {
        this.createuser = createuser;
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<TbActivityCommodityDto> getTbActivityCommodityList() {
        return tbActivityCommodityList;
    }

    public void setTbActivityCommodityList(List<TbActivityCommodityDto> tbActivityCommodityList) {
        this.tbActivityCommodityList = tbActivityCommodityList;
    }

    public TbCommodityDto getTbCommodityDto() {
        return tbCommodityDto;
    }

    public void setTbCommodityDto(TbCommodityDto tbCommodityDto) {
        this.tbCommodityDto = tbCommodityDto;
    }

    public String getBannerurl() {
        return bannerurl;
    }

    public void setBannerurl(String bannerurl) {
        this.bannerurl = bannerurl;
    }

    public Float getThreebargain() {
        return threebargain;
    }

    public void setThreebargain(Float threebargain) {
        this.threebargain = threebargain;
    }

    public Float getSixbargain() {
        return sixbargain;
    }

    public void setSixbargain(Float sixbargain) {
        this.sixbargain = sixbargain;
    }

    public Float getTenbargain() {
        return tenbargain;
    }

    public void setTenbargain(Float tenbargain) {
        this.tenbargain = tenbargain;
    }
}
